/**
 * Created with Interllij IDEA.
 * Descriptiption:
 * User: 王澄慧
 * Date: 2022-04-06
 * Time: 9:33
 */
public class FristDemo {
    public static int tEP(int n){
        if(n == 1){
            return 1;
        }
        int tem = n*tEP(n-1);
        return tem;
    }
    public static void main(String[] args) {
        System.out.println(tEP(4));
    }
    public static int fUM(int s,int y){
        return s+y;
    }
    public static int fUM(int x,int y,int i){
        return x+y+i;
    }
    public static double fUM(double x,double y,double i){
        return x+y+i;
    }
    public static double fUM(double x,double y){
        return x+y;
    }
    public static void fUM(int a,int y,double c){
        System.out.println(a+y+c);
    }
    public static void main3(String[] args) {
        System.out.println(fUM(2, 4));
        System.out.println(fUM(2,3,4));
        System.out.println(fUM(2.3,2.4,2.5));
        System.out.println(fUM(2.3, 3.4));
        fUM(12,11,1.2);
    }
    public static void nUM(int x,int y){
        int tem = x;
        x = y;
        y = tem;
        System.out.println("nUM: x = "+ x +"y =" +y);
    }
    public static void main2(String[] args) {
        int i = 10;
        int t = 5;
        nUM(i,t);
        System.out.println("main: i = "+ i +"t =" +t);
    }
    public static int sUM(int x,int y){
        return x+y;
    }
    public static void main1(String[] args) {
        System.out.println(sUM(2,3));
    }
}


